﻿using DiaoPaiDaYin;
using DXApplicationTangche.UC.客户CRM.Service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.查询
{
    public partial class Frm客户姓名查信息 : DevExpress.XtraEditors.XtraForm
    {
        public Frm客户姓名查信息()
        {
            InitializeComponent();
        }

        private void textBox姓名_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyValue == 13)
            {
                this.Refresh(this.textBox姓名.Text.Trim());
            }
        }

        private void Refresh(String name)
        {
            this.gridControl客户信息.DataSource =CRM客户Service.getCustomerOrderCommitByConsignee(name);
            this.gridView客户信息.RefreshData();
        }
    }
}
